<template>
  <ul class="chapterList videoList">
    <video-list-item v-for="(video, index) in videoList" :key="index" :video="video" :chapter-id="chapterId" :course-id="courseId" />
  </ul>
</template>

<script>
import ChapterListItem from "@/components/edu/ChapterListItem";
import VideoListItem from "@/components/edu/VideoListItem";
export default {
  name: "VideoList",
  components: {VideoListItem, ChapterListItem},
  props: {
    courseId: String,
    chapterId: String,
    videoList: Array
  }
}
</script>

<style scoped>
.chapterList {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chapterList li {
  position: relative;
}
.chapterList p {
  float: left;
  font-size: 20px;
  margin: 10px 0;
  padding: 10px;
  height: 70px;
  line-height: 50px;
  width: 100%;
  border: 1px solid #ddd;
}
.chapterList .acts {
  float: right;
  font-size: 14px;
}

.videoList {
  padding-left: 50px;
}
.videoList p {
  float: left;
  font-size: 14px;
  margin: 10px 0;
  padding: 10px;
  height: 50px;
  line-height: 30px;
  width: 100%;
  border: 1px dotted #ddd;
}
</style>
